#include "MetaFile.h"

namespace Validator
{

using namespace std;

MetaFile::MetaFile(void)
{
	this->Init();
}

MetaFile::MetaFile(std::string theFileName,const char* theFileType,bool theDoExtract)
{
	this->Init();

	myFileName = theFileName;
	if(theFileType != NULL)
	{
		strncpy(myType,theFileType,3);
		myType[3] = '\0';	//nullterminacia
	}
	myExtract = theDoExtract;
}

MetaFile::~MetaFile(void)
{
}


string MetaFile::GetName()
{
	return myFileName;
}


string MetaFile::GetType()
{
	return string(myType);
}

bool MetaFile::DoExtract()
{
	return myExtract;
}

//**************************************************************//
//						Private Methods							//
//**************************************************************//

void MetaFile::Init()
{
	myType[0] = myType[1] = myType[2] = '\0';
	myExtract = false;
}

}